import home from './pages/home'
import about from './pages/about'
import article from './pages/article'
import archive from './pages/archive'
import apply from './pages/apply'
import classify from './pages/classify'

const routes = [
    {
        path: '/',
        component: home
    },
    {
        path: '/home',
        name: 'home',
        component: home
    },
    {
        path: '/about',
        name: 'about',
        component: about
    },
    {
        path: '/article/:id',
        name: 'article',
        component: article
    },
    {
        path: '/archive',
        name: 'archive',
        component: archive
    },
    {
        path:'/tag/:name',
        name:'tag',
        component: classify
    },
    {
        path: '/apply',
        name: 'apply',
        component: apply
    },
    {
        path: '/classify/:name',
        name: 'classify',
        component: classify
    }
]

export default routes
